<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>TURN Server: turn::StunAttrIterator Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">TURN Server
   &#160;<span id="projectnumber">1.5</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceturn.html">turn</a>      </li>
      <li class="navelem"><a class="el" href="classturn_1_1StunAttrIterator.html">StunAttrIterator</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a>  </div>
  <div class="headertitle">
<div class="title">turn::StunAttrIterator Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="TurnMsgLib_8h_source.html">TurnMsgLib.h</a>&gt;</code></p>

<p><a href="classturn_1_1StunAttrIterator-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aecef3110e09f0b2c9cf7c27efd01df51"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classturn_1_1StunAttrIterator.html#aecef3110e09f0b2c9cf7c27efd01df51">StunAttrIterator</a> (u08bits *buf, size_t sz)  throw (WrongStunBufferFormatException)</td></tr>
<tr class="memitem:ae19b078aa1f031ab186a8f483e56e104"><td class="memTemplParams" colspan="2">template&lt;class T &gt; </td></tr>
<tr class="memitem:ae19b078aa1f031ab186a8f483e56e104"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classturn_1_1StunAttrIterator.html#ae19b078aa1f031ab186a8f483e56e104">StunAttrIterator</a> (T &amp;msg)  throw (WrongStunBufferFormatException)</td></tr>
<tr class="memitem:a243eb3e610b737a48167d47ed819dd7c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classturn_1_1StunAttrIterator.html#a243eb3e610b737a48167d47ed819dd7c">StunAttrIterator</a> (u08bits *buf, size_t sz, u16bits attr_type)  throw (WrongStunBufferFormatException)</td></tr>
<tr class="memitem:a7d8cfa4f462968f75a5732379b5cc1a6"><td class="memTemplParams" colspan="2">template&lt;class T &gt; </td></tr>
<tr class="memitem:a7d8cfa4f462968f75a5732379b5cc1a6"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classturn_1_1StunAttrIterator.html#a7d8cfa4f462968f75a5732379b5cc1a6">StunAttrIterator</a> (T &amp;msg, u16bits attr_type)  throw (WrongStunBufferFormatException)</td></tr>
<tr class="memitem:aac145186739b2185d4ce314df3f1cb7e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classturn_1_1StunAttrIterator.html#aac145186739b2185d4ce314df3f1cb7e">next</a> ()  throw (EndOfStunMsgException)</td></tr>
<tr class="memitem:ad6e5430541c401532ac9de0c24dda2f4"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classturn_1_1StunAttrIterator.html#ad6e5430541c401532ac9de0c24dda2f4">eof</a> () const </td></tr>
<tr class="memitem:a3b74d1b277340ec439fefdcdfdf0a40f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classturn_1_1StunAttrIterator.html#a3b74d1b277340ec439fefdcdfdf0a40f">isAddr</a> () const </td></tr>
<tr class="memitem:ad2ee2d3f6f2f46f53c43c5b49b1264a6"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classturn_1_1StunAttrIterator.html#ad2ee2d3f6f2f46f53c43c5b49b1264a6">getAddressFamily</a> () const </td></tr>
<tr class="memitem:a7262021b86bdc21dd6b5dbc36456632c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classturn_1_1StunAttrIterator.html#a7262021b86bdc21dd6b5dbc36456632c">getType</a> () const </td></tr>
<tr class="memitem:a4678eab1ddc3b4d54c9d45aa6f7122e4"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classturn_1_1StunAttrIterator.html#a4678eab1ddc3b4d54c9d45aa6f7122e4">~StunAttrIterator</a> ()</td></tr>
<tr class="memitem:af422c1b281075d182d406823b55f198d"><td class="memItemLeft" align="right" valign="top">const u08bits *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classturn_1_1StunAttrIterator.html#af422c1b281075d182d406823b55f198d">getRawBuffer</a> (size_t &amp;sz) const   throw (WrongStunAttrFormatException)</td></tr>
<tr><td colspan="2"><h2><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a82f1cf551754f0ffb995484b693a5794"><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classturn_1_1StunAttrIterator.html#a82f1cf551754f0ffb995484b693a5794">StunAttr</a></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Iterator class for attributes </p>

<p>Definition at line <a class="el" href="TurnMsgLib_8h_source.html#l00073">73</a> of file <a class="el" href="TurnMsgLib_8h_source.html">TurnMsgLib.h</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aecef3110e09f0b2c9cf7c27efd01df51"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classturn_1_1StunAttrIterator.html#aecef3110e09f0b2c9cf7c27efd01df51">turn::StunAttrIterator::StunAttrIterator</a> </td>
          <td>(</td>
          <td class="paramtype">u08bits *&#160;</td>
          <td class="paramname"><em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>sz</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>  throw (<a class="el" href="classturn_1_1WrongStunBufferFormatException.html">WrongStunBufferFormatException</a>)<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Iterator constructor: creates iterator on raw messagebuffer. </p>

<p>Definition at line <a class="el" href="TurnMsgLib_8h_source.html#l00078">78</a> of file <a class="el" href="TurnMsgLib_8h_source.html">TurnMsgLib.h</a>.</p>
<div class="fragment"><pre class="fragment">                                                                                         :
                _buf(buf), _sz(sz)  {
                <span class="keywordflow">if</span>(!<a class="code" href="ns__turn__msg_8h.html#a0ec34e642f8cbf785ecef76f7fb0d87b">stun_is_command_message_str</a>(_buf, _sz)) {
                        <span class="keywordflow">throw</span> WrongStunBufferFormatException();
                }
                _sar = <a class="code" href="ns__turn__msg_8h.html#a2672e36b81e61e29c4e61dbdda0cc547">stun_attr_get_first_str</a>(_buf, _sz);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="ae19b078aa1f031ab186a8f483e56e104"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classturn_1_1StunAttrIterator.html#aecef3110e09f0b2c9cf7c27efd01df51">turn::StunAttrIterator::StunAttrIterator</a> </td>
          <td>(</td>
          <td class="paramtype">T &amp;&#160;</td>
          <td class="paramname"><em>msg</em></td><td>)</td>
          <td>  throw (<a class="el" href="classturn_1_1WrongStunBufferFormatException.html">WrongStunBufferFormatException</a>)<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Iterator constructor: create iterator over message. </p>

<p>Definition at line <a class="el" href="TurnMsgLib_8h_source.html#l00090">90</a> of file <a class="el" href="TurnMsgLib_8h_source.html">TurnMsgLib.h</a>.</p>
<div class="fragment"><pre class="fragment">                                                                        :
                _buf(msg.getRawBuffer()), _sz(msg.getSize())  {
                <span class="keywordflow">if</span>(!<a class="code" href="ns__turn__msg_8h.html#a0ec34e642f8cbf785ecef76f7fb0d87b">stun_is_command_message_str</a>(_buf, _sz)) {
                        <span class="keywordflow">throw</span> WrongStunBufferFormatException();
                }
                _sar = <a class="code" href="ns__turn__msg_8h.html#a2672e36b81e61e29c4e61dbdda0cc547">stun_attr_get_first_str</a>(_buf, _sz);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a243eb3e610b737a48167d47ed819dd7c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classturn_1_1StunAttrIterator.html#aecef3110e09f0b2c9cf7c27efd01df51">turn::StunAttrIterator::StunAttrIterator</a> </td>
          <td>(</td>
          <td class="paramtype">u08bits *&#160;</td>
          <td class="paramname"><em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>sz</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u16bits&#160;</td>
          <td class="paramname"><em>attr_type</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>  throw (<a class="el" href="classturn_1_1WrongStunBufferFormatException.html">WrongStunBufferFormatException</a>)<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Iterator constructor: creates iterator over raw buffer, starting from first location of an attribute of particular type. </p>

<p>Definition at line <a class="el" href="TurnMsgLib_8h_source.html#l00102">102</a> of file <a class="el" href="TurnMsgLib_8h_source.html">TurnMsgLib.h</a>.</p>
<div class="fragment"><pre class="fragment">                                                                                                            :
                        _buf(buf), _sz(sz)  {
                <span class="keywordflow">if</span>(!<a class="code" href="ns__turn__msg_8h.html#a0ec34e642f8cbf785ecef76f7fb0d87b">stun_is_command_message_str</a>(_buf, _sz)) {
                        <span class="keywordflow">throw</span> WrongStunBufferFormatException();
                }
                _sar = <a class="code" href="ns__turn__msg_8h.html#a05ac5979839241de8b46e4ebdc145722">stun_attr_get_first_by_type_str</a>(_buf, _sz, attr_type);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a7d8cfa4f462968f75a5732379b5cc1a6"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classturn_1_1StunAttrIterator.html#aecef3110e09f0b2c9cf7c27efd01df51">turn::StunAttrIterator::StunAttrIterator</a> </td>
          <td>(</td>
          <td class="paramtype">T &amp;&#160;</td>
          <td class="paramname"><em>msg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u16bits&#160;</td>
          <td class="paramname"><em>attr_type</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>  throw (<a class="el" href="classturn_1_1WrongStunBufferFormatException.html">WrongStunBufferFormatException</a>)<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Iterator constructor: creates iterator over message, starting from first location of an attribute of particular type. </p>

<p>Definition at line <a class="el" href="TurnMsgLib_8h_source.html#l00115">115</a> of file <a class="el" href="TurnMsgLib_8h_source.html">TurnMsgLib.h</a>.</p>
<div class="fragment"><pre class="fragment">                                                                                           :
                        _buf(msg.getRawBuffer()), _sz(msg.getSize())  {
                <span class="keywordflow">if</span>(!<a class="code" href="ns__turn__msg_8h.html#a0ec34e642f8cbf785ecef76f7fb0d87b">stun_is_command_message_str</a>(_buf, _sz)) {
                        <span class="keywordflow">throw</span> WrongStunBufferFormatException();
                }
                _sar = <a class="code" href="ns__turn__msg_8h.html#a05ac5979839241de8b46e4ebdc145722">stun_attr_get_first_by_type_str</a>(_buf, _sz, attr_type);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a4678eab1ddc3b4d54c9d45aa6f7122e4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classturn_1_1StunAttrIterator.html#a4678eab1ddc3b4d54c9d45aa6f7122e4">turn::StunAttrIterator::~StunAttrIterator</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Destructor </p>

<p>Definition at line <a class="el" href="TurnMsgLib_8h_source.html#l00164">164</a> of file <a class="el" href="TurnMsgLib_8h_source.html">TurnMsgLib.h</a>.</p>
<div class="fragment"><pre class="fragment">{}
</pre></div>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ad6e5430541c401532ac9de0c24dda2f4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classturn_1_1StunAttrIterator.html#ad6e5430541c401532ac9de0c24dda2f4">turn::StunAttrIterator::eof</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Is the iterator finished </p>

<p>Definition at line <a class="el" href="TurnMsgLib_8h_source.html#l00136">136</a> of file <a class="el" href="TurnMsgLib_8h_source.html">TurnMsgLib.h</a>.</p>
<div class="fragment"><pre class="fragment">                         {
                <span class="keywordflow">return</span> (!_sar);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="ad2ee2d3f6f2f46f53c43c5b49b1264a6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classturn_1_1StunAttrIterator.html#ad2ee2d3f6f2f46f53c43c5b49b1264a6">turn::StunAttrIterator::getAddressFamily</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return address family attribute value (if the iterator at the "address family" attribute. </p>

<p>Definition at line <a class="el" href="TurnMsgLib_8h_source.html#l00150">150</a> of file <a class="el" href="TurnMsgLib_8h_source.html">TurnMsgLib.h</a>.</p>
<div class="fragment"><pre class="fragment">                                     {
                <span class="keywordflow">return</span> <a class="code" href="ns__turn__msg_8h.html#a3f09dff5fdeccfbc47c7480cb6d3022b">stun_get_requested_address_family</a>(_sar);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="af422c1b281075d182d406823b55f198d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const u08bits* <a class="el" href="classturn_1_1StunAttrIterator.html#af422c1b281075d182d406823b55f198d">turn::StunAttrIterator::getRawBuffer</a> </td>
          <td>(</td>
          <td class="paramtype">size_t &amp;&#160;</td>
          <td class="paramname"><em>sz</em></td><td>)</td>
          <td> const  throw (<a class="el" href="classturn_1_1WrongStunAttrFormatException.html">WrongStunAttrFormatException</a>)<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return raw memroy field of the attribute value. If the attribute value length is zero (0), then return NULL. </p>

<p>Definition at line <a class="el" href="TurnMsgLib_8h_source.html#l00170">170</a> of file <a class="el" href="TurnMsgLib_8h_source.html">TurnMsgLib.h</a>.</p>
<div class="fragment"><pre class="fragment">                                                                                          {
                <span class="keywordtype">int</span> len = <a class="code" href="ns__turn__msg_8h.html#a9abbba99b98eb81707300695ee51130e">stun_attr_get_len</a>(_sar);
                <span class="keywordflow">if</span>(len&lt;0)
                        <span class="keywordflow">throw</span> WrongStunAttrFormatException();
                sz = (size_t)len;
                <span class="keyword">const</span> u08bits *value = <a class="code" href="ns__turn__msg_8h.html#af7fac8081f66d939f9f8211b88988678">stun_attr_get_value</a>(_sar);
                <span class="keywordflow">return</span> value;
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a7262021b86bdc21dd6b5dbc36456632c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classturn_1_1StunAttrIterator.html#a7262021b86bdc21dd6b5dbc36456632c">turn::StunAttrIterator::getType</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Get attribute type </p>

<p>Definition at line <a class="el" href="TurnMsgLib_8h_source.html#l00157">157</a> of file <a class="el" href="TurnMsgLib_8h_source.html">TurnMsgLib.h</a>.</p>
<div class="fragment"><pre class="fragment">                            {
                <span class="keywordflow">return</span> <a class="code" href="ns__turn__msg_8h.html#afe33b37ab65c1bca18377d50c88ff63b">stun_attr_get_type</a>(_sar);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a3b74d1b277340ec439fefdcdfdf0a40f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classturn_1_1StunAttrIterator.html#a3b74d1b277340ec439fefdcdfdf0a40f">turn::StunAttrIterator::isAddr</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Is the iterator at an address attribute </p>

<p>Definition at line <a class="el" href="TurnMsgLib_8h_source.html#l00143">143</a> of file <a class="el" href="TurnMsgLib_8h_source.html">TurnMsgLib.h</a>.</p>
<div class="fragment"><pre class="fragment">                            {
                <span class="keywordflow">return</span> <a class="code" href="ns__turn__msg_8h.html#a9a91835f95ce0fa295d8b9fbee9b98db">stun_attr_is_addr</a>(_sar);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="aac145186739b2185d4ce314df3f1cb7e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classturn_1_1StunAttrIterator.html#aac145186739b2185d4ce314df3f1cb7e">turn::StunAttrIterator::next</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td>  throw (<a class="el" href="classturn_1_1EndOfStunMsgException.html">EndOfStunMsgException</a>)<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Moves iterator to next attribute location </p>

<p>Definition at line <a class="el" href="TurnMsgLib_8h_source.html#l00126">126</a> of file <a class="el" href="TurnMsgLib_8h_source.html">TurnMsgLib.h</a>.</p>
<div class="fragment"><pre class="fragment">                                                 {
                <span class="keywordflow">if</span>(!_sar) {
                        <span class="keywordflow">throw</span> EndOfStunMsgException();
                }
                _sar = <a class="code" href="ns__turn__msg_8h.html#a63699d8c20d5252c0eb94d8ad37e9d92">stun_attr_get_next_str</a>(_buf,_sz,_sar);
        }
</pre></div>
</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="a82f1cf551754f0ffb995484b693a5794"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="classturn_1_1StunAttr.html">StunAttr</a><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="TurnMsgLib_8h_source.html#l00178">178</a> of file <a class="el" href="TurnMsgLib_8h_source.html">TurnMsgLib.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/client++/<a class="el" href="TurnMsgLib_8h_source.html">TurnMsgLib.h</a></li>
</ul>
</div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Tue Jan 22 2013 14:23:54 for TURN Server by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.0
</small></address>

</body>
</html>
